# @Time: 2021/3/17  21:12
# @Author: LYi
# @TODO:

import requests
import pprint

payload = {
    'username': 'byhy',
    'password': '88888888',
}
payload1 = {
    'action': 'list_customer'
}

response = requests.post('http://127.0.0.1/api/mgr/signin',
                         data=payload
                         )

# pprint.pprint(response.json())

response1 = requests.get('http://127.0.0.1/api/mgr/customers',
                         params=payload1)

pprint.pprint(response1.json())
